#include <cstdint>
#include <iostream>
#include <istream>
#include <vector>
using ll = int64_t;

ll n,d;
std::vector<std::vector<ll>> m;

int main(){
    std::iostream::sync_with_stdio(false);
    std::cin.tie(nullptr);

    std::cin>>n>>d;
    m.resize(n+1,std::vector<ll>(n+1));
    for(ll i=1;i<=n;i++){
        for(ll j=1;j<=n;j++){
            std::cin>>m[i][j];
        }
    }
    
}